﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Amie
{
    public static class Logger
    {
        public static string logfilePath = "Install_Log.txt";
        public static void Info(string message, params string[] args)
        {
            WriteEntry(string.Format(message, args), "Info");
        }

        public static void Error(string message, params string[] args)
        {
            WriteEntry(string.Format(message, args), "Error");
        }

        static void WriteEntry(string message, string severity)
        {
            System.IO.File.AppendAllText(logfilePath, string.Format("\r\n{0}-{1}: {2}", severity, DateTime.Now.ToString(), message));
        }

    }
}
